package com.temp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Withdraw implements Serializable {

    /**
     * 提现申请主键ID(主键)
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 创建用户ID(外键)
     */
    private Long userId;

    /**
     * 打款金额
     */
    private BigDecimal amount;

    /**
     * 打款地址
     */
    private String walletAddress;

    /**
     * 状态
     */
    private int status;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}
